package com.example.module_service

import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.launcher.ARouter
import com.example.lib_base.path.RouterPath
import com.example.lib_common.view.view.BaseMvvmFragment
import com.example.module_service.databinding.FragmentServiceBinding
import com.example.module_service.park.ParkActivity
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class ServiceFragment : BaseMvvmFragment<FragmentServiceBinding>() {
    override fun getLayoutId(): Int =R.layout.fragment_service

    override fun initViews() {
        mDataBinding.park.setOnClickListener{
            ARouter.getInstance().build(RouterPath.PATH_PARK_PAGE).navigation()
        }

        mDataBinding.devices.setOnClickListener{
            ARouter.getInstance().build(RouterPath.PATH_NOTICE_PAGE).navigation()
        }
        mDataBinding.llCar.setOnClickListener{
            ARouter.getInstance().build(RouterPath.PATH_CAR_PAGE).navigation()
        }
        mDataBinding.llHouse.setOnClickListener{
            ARouter.getInstance().build(RouterPath.PATH_HOUSE_PAGE).navigation()
        }
        mDataBinding.llReservations.setOnClickListener {
            ARouter.getInstance().build(RouterPath.PATH_DEVICE_PAGE).navigation()
        }
        mDataBinding.llXj.setOnClickListener {
            ARouter.getInstance().build(RouterPath.PATH_TASK_PAGE).navigation()
        }
    }

}